<?php declare(strict_types=1);

namespace App\Api\Controller;

use App\Abstract\Controller;
use App\Api\Constants\Business;
use App\Api\Handler\PaymentHandler;
use Hyperf\Di\Annotation\Inject;

class PaymentController extends Controller
{

    #[Inject]
    protected PaymentHandler $handler;

    /**
     * 微信支付回调异步通知
     */
    public function wxNotify(): \Psr\Http\Message\ResponseInterface
    {
        return $this->handler->wxNotify($this->response, $this->request->all());
    }

    /**
     * 支付宝支付回调异步通知
     */
    public function aliNotify(): \Psr\Http\Message\ResponseInterface
    {
        return $this->handler->aliNotify($this->response, $this->request->all());
    }
}